<?php

class Henry_CreateThemes {
	public static function create(&$viewOb,$module = 'default',$themes = 'default',$installFile = 'install.ini')
	{
		$themesPath = APPLICATION_PATH . '/templates/'.$module.'/'.$themes;
		$fileConfigPatch = $themesPath . '/'.$installFile;
		//Dung Zend_Config de doc cau hinh
		//Tham so thu 1: Duong dan chua file cau hinh
		//Tham so thu 2: vun can load cau hinh
		$configLayout = new Zend_Config_Ini ( $fileConfigPatch, 'template' );

		//Lay duong dan URL cua ung dung
		$request = new Zend_Controller_Request_Http(); 
		$realUrl = $request->getBaseUrl();

		$option = array ('layout' => $configLayout->filename, 'layoutPath' => $themesPath );
		//Bat layout theo che do MVC
		$layout = Zend_Layout::startMvc ( $option );
	}
}

?>